package JDBC.fengzhuang;

import java.sql.*;

/**
 * 测试BLOB 二进制大对象的使用
 */
public class test {
    public static void main(String[] args) {
        Connection conn=null;
        ResultSet rs = null;
        PreparedStatement ps =null;
        try {
            conn = JdbcUtil.getMysqlConn();
            ps = conn.prepareStatement("INSERT INTO user (userName) VALUES (?)");
            ps.setObject(1,"狗屎瑶");
            ps.execute();
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            JdbcUtil.close(rs,ps,conn);
        }

    }
}
